//
//  GYMyHeaderView.m
//  Visitor
//
//  Created by x on 2017/9/20.
//  Copyright © 2017年 HLB. All rights reserved.
//

#import "GYMyHeaderView.h"


@interface GYMyHeaderView ()

/** 头像 */
@property (weak, nonatomic) IBOutlet UIImageView *iconImage;

/** 昵称 */
@property (weak, nonatomic) IBOutlet UILabel *nickLable;

/** 用户名 */
@property (weak, nonatomic) IBOutlet UILabel *userLable;

@end

@implementation GYMyHeaderView

+ (GYMyHeaderView *)headerView {
    return  [[[NSBundle mainBundle]loadNibNamed:@"GYMyHeaderView" owner:self options:nil]firstObject];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.nickLable.text = [[GYUserInfo loadUserInfo] name];
    self.userLable.text = [NSString stringWithFormat:@"账号: %@",[[GYUserInfo loadUserInfo] account]];
    
}
@end
